package com.rpc.multiRegister;

import com.rpc.mini.HelloService;
import com.rpc.mini.HelloServiceImpl;

/**
 * @author ZhangYongLiang
 * @Date 2021/11/11 14:07
 */
public class TestServer {

    public static void main(String[] args) throws RPCException {
        HelloServiceImpl helloService = new HelloServiceImpl();
        ServiceRegistry serviceRegistry = new DefaultServiceRegistry();
        serviceRegistry.register(helloService);
        RpcServer rpcServer = new RpcServer(serviceRegistry);
        rpcServer.start(9000);
    }
}
